<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <!-- import CSS -->
    <link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.15.9/theme-chalk/index.css">
    <style>
        .el-page-header__content {
            color: white;
        }

        .footer_links {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 36px 0;
            text-align: center;
            zoom: 1;
        }

        li, ul {
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .footer_links_list {
            float: left;
            font-size: 13px;
            margin-left: 10px;
            margin-right: 10px;
            color: #111;
        }

        footer a {
            text-decoration: none;
            color: black;
        }

        .footer_r_1 {
            zoom: 1;
            padding-bottom: 10px;
        }

        .footer_r_1_a {
            float: left;
            display: block;
            width: 98px;
            height: 27px;
            line-height: 27px;
            text-align: center;
            background-color: #ff1268;
            color: #fff;
            font-size: 14px;
            border-radius: 20px;
        }

        .footer_r_words {
            padding-bottom: 6px;
        }

        .footer_r_words_word {
            float: left;
            font-size: 13px;
            color: #111;

        }

        .footer_r_words_line {
            float: left;
            padding: 0 15px;
        }

        .center {
            width: 1550px;
            margin: 0 auto

        }

    </style>
</head>
<body>
<div id="app">
    <el-container>
        <el-page-header style="width: 100%;background-color: #386582;color: white;line-height: 60px"
                        @back="goBack" content="小麦网后台管理系统-添加轮播图页面">
        </el-page-header>


        <el-main>
            <!--上传组件开始-->
            <el-upload
                    action="/upload"
                    name="picFile"
                    limit="1"
                    list-type="picture-card"
                    :on-success="handleSuccess"
                    :on-preview="handlePictureCardPreview"
                    :on-remove="handleRemove">
                <i class="el-icon-plus"></i>
            </el-upload>
            <el-dialog :visible.sync="dialogVisible">
                <img width="100%" :src="dialogImageUrl" alt="">
            </el-dialog>
            <!--上传组件结束-->
            <el-button type="success" @click="upload()">上传轮播图</el-button>
        </el-main>


        <el-footer style="background-color: #f8f8f8;height: 280px; margin:0 auto;width: 100%;">
            <div class="center" style="color: #666;width: 1200px">
                <div style="height: 80px;line-height:15px;margin: 0 ">
                    <ul class="footer_links">
                        <li class="footer_links_list"><a href="">帮助中心</a></li>
                        <li class="footer_links_list">|</li>
                        <li class="footer_links_list"><a href="">公司介绍</a></li>
                        <li class="footer_links_list">|</li>
                        <li class="footer_links_list"><a href="">品牌识别</a></li>
                        <li class="footer_links_list">|</li>
                        <li class="footer_links_list"><a href="">公司大事记</a></li>
                        <li class="footer_links_list">|</li>
                        <li class="footer_links_list"><a href="">协议及隐私政策</a></li>
                        <li class="footer_links_list">|</li>
                        <li class="footer_links_list"><a href="">廉政举报</a></li>
                        <li class="footer_links_list">|</li>
                        <li class="footer_links_list"><a href="">联系合作</a></li>
                        <li class="footer_links_list">|</li>
                        <li class="footer_links_list"><a href="">招聘信息</a></li>
                        <li class="footer_links_list">|</li>
                        <li class="footer_links_list"><a href="">防骗秘籍</a></li>

                    </ul>
                </div>
                <div style="height: 172px;margin: 10px ">
                    <el-row gutter="20">
                        <el-col span="8">
                            <img src="imgs/首页log1.jpg" style="width:167px;height: 60px ;margin:15px">
                            <img src="imgs/二维码.jpg" style="width:87px;height: 87px;margin-right:30px">
                        </el-col>
                        <el-col span="16">
                            <div class="footer_r_1">
                                <a href="" class="footer_r_1_a">在线客服</a>
                            </div>
                            <br>


                            <ul class="footer_r_words">
                                <li class="footer_r_words_word">
                                    <a href="">京ICP证031057号</a>
                                </li>
                                <li class="footer_r_words_line">|</li>
                                <li class="footer_r_words_word">
                                    <a href="">京ICP备11043884号</a>
                                </li>
                                <li class="footer_r_words_line">|</li>
                                <li class="footer_r_words_word">
                                    <a href="">京公网安备11010502037341号</a>
                                </li>
                                <li class="footer_r_words_line">|</li>
                                <li class="footer_r_words_word">
                                    <a href="">广播电视节目制作经营许可证(京)字第02253号</a>
                                </li>
                                <br>
                                <li class="footer_r_words_word">
                                    <a href="">网络文化经营许可证 京网文[2023]1649-054号</a>
                                </li>
                                <li class="footer_r_words_line">|</li>
                                <li class="footer_r_words_word">
                                    <a href="">营业性演出许可证京市演587号</a>
                                </li>
                                <br>
                                <li class="footer_r_words_word">
                                    北京大麦文化传媒发展有限公司 版权所有大麦网Copyright 2003-2020 All Rights Reserved
                                </li>
                                <br>
                                <li class="footer_r_words_word">
                                    举报投诉：damai_tousu@member.alibaba.com 浙江省杭州市余杭区文一西路969号
                                </li>
                                <br>
                                <li class="footer_r_words_word">
                                    违法不良信息举报电话：020-62108294
                                </li>
                            </ul>
                            <br>
                            <img src="imgs/首页电子执照.jpg " style="width: 100px;height: 30px ;float:left">
                            <img src="imgs/首页pci.jpg" style="width: 57px;height:30px ;float:left">
                            <img src="imgs/首页log1.jpg" style="width: 45px;height: 30px ;float:left">
                        </el-col>
                    </el-row>
                </div>
            </div>
        </el-footer>

    </el-container>
</div>
</body>
<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.min.js"></script>
<!-- import Vue before Element -->
<script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>
<!-- import JavaScript -->
<script src="https://cdn.staticfile.org/element-ui/2.15.9/index.min.js"></script>
<script>
    let v = new Vue({
        el: '#app',
        data: function () {
            return {
                dialogImageUrl: '',
                dialogVisible: false,
                url: ""
            }
        },
        methods: {
            upload() {

            },
            goBack() {
                console.log('go back');
                //返回上一页面
                history.back();
            },
            handleSuccess(response, file, fileList) {
                v.url = response;
            },
            handleRemove(file, fileList) {
                //发出删除图片的请求
                axios.get("/remove?url=" + v.url).then(function () {
                    console.log("删除服务器图片完成!");
                    v.url = "";
                })
                console.log(file, fileList);
            },
            handlePictureCardPreview(file) {
                this.dialogImageUrl = file.url;
                this.dialogVisible = true;
            }
        }
    })
</script>
</html>